package modellayer;

/**
 * The customer class to create customer objects
 * @author Allan Eriksen, Andreas Rye, Casper Madsen, Christian Stidsborg, Stefan Bols
 */

public class Invoice {
	private int invoiceNo;
	private String paymentDate;
	private double amount;
	private boolean isDummy;
	
	
	/**
	 * Invoice Fields
	 * @param invoiceNo
	 * @param paymentDate
	 * @param amount
	 */
	
	/**
	 * Constructor for the Invoice class 
	 */
	public Invoice(int invoiceNo, String paymentDate, double amount) {
		super();
		this.invoiceNo = invoiceNo;
		this.paymentDate = paymentDate;
		this.amount = amount;
		this.isDummy = false;
	}
	
	/**
	 * 
	 * @param invoiceNo
	 */
	public Invoice(int invoiceNo) {
		this.invoiceNo = invoiceNo;
		this.isDummy = true;
	}


	/**
	 * Get method for the invoice number
	 * @return the invoiceNo
	 */
	public int getInvoiceNo() {
		return invoiceNo;
	}


	/**
	 * Set method for the invoice number
	 * @param invoiceNo
	 */
	public void setInvoiceNo(int invoiceNo) {
		this.invoiceNo = invoiceNo;
	}


	/**
	 * Get method for the invoice paymentDate
	 * @return the paymentDate
	 */
	public String getPaymentDate() {
		return paymentDate;
	}


	/**
	 * Set method for the invoice paymentDate
	 * @param paymentDate
	 */
	public void setPaymentDate(String paymentDate) {
		this.paymentDate = paymentDate;
	}


	/**
	 * Get method for the invoice amount
	 * @return the amount
	 */
	public double getAmount() {
		return amount;
	}


	/**
	 * Set method for the invoice amount
	 * @param amount
	 */
	public void setAmount(double amount) {
		this.amount = amount;
	}
	
	/**
	 * @return the isDummy
	 */
	public boolean isDummy() {
		return this.isDummy;
	}
	
	
}
